import 'package:car_map/widget/widget_notfound.dart';
import 'package:flutter/material.dart';
///平台消息
class PlatformPage extends StatefulWidget{
  @override
  _platformState createState()=>_platformState();

}

class _platformState extends State<PlatformPage> with SingleTickerProviderStateMixin{

  final List<Tab> tabList=[
    Tab(text: '警报消息',),
    Tab(text: '系统消息',),
  ];

  TabController controller;

  @override
  void initState() {
    // TODO: implement initState
    super.initState();
    controller=new TabController(length: tabList.length, vsync: this);
  }

  @override
  void dispose() {
    // TODO: implement dispose
    super.dispose();
    controller.dispose();
  }

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      appBar: AppBar(
        title: Text('平台消息'),
        bottom: TabBar(tabs: tabList,controller: controller,),
      ),
      body: Container(
        child: TabBarView(
          children: <Widget>[
            WidgetNotFound(),
            WidgetNotFound()
          ],
          controller: controller,
        ),
      ),
    );
  }

}